


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        textarea{
            display: block;
            margin: 30px auto;
            height: 300px;
            width: 600px;
            padding: 10px;
        }
    </style>
</head>
<body>

    <textarea id="textarea">
        <div v-if="a">
        </div>
        <p v-else></p>
    </textarea>

    
        <div >
            <p ></p>
            <div v-if="a"></div>
            <span v-else></span>
            <strong ></strong> 
        </div>

    <!-- [div,p,] -->
    
   <button id="parse">解析</button>

    <script src="./process.js"></script>
    <script src="./common.js"></script>
    <script src="./index.js"></script>

    <script>

        document.getElementById("parse").onclick=function(){
            var html = document.getElementById("textarea").value
            console.log(parse(html,{
                expectHTML: true,
            }))
        }
    </script>
    
</body>
</html>